<%@ page import="com.hngc.dao.UserDao" %><%--
  Created by IntelliJ IDEA.
  User: 悠乐美
  Date: 2024/1/9
  Time: 12:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String name = request.getParameter("name");
    String pwd = request.getParameter("pwd");

    UserDao userDao = new UserDao();
    boolean flag = userDao.userLogin(name, pwd);

    if (flag) {
        response.sendRedirect("userlist.jsp");
    } else {
        response.sendRedirect("login.jsp");
    }

%>


</body>
</html>
